﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DataLayer
{
    public partial class Product
    {
        partial void OnProductNameChanging(string value)
        {
            if (value == "")
                throw new Exception("Product name cannot be empty");
        }
    }
}
